
<table class="layui-table">
    <colgroup>
        <col width="100">
        <col >
        <col >
        <col >
        <col >
        <col >
        <col >
        <col width="80">

    </colgroup>
    <thead>
    <tr>
        <th>姓名</th>

        <th>电话</th>
        <th>邮箱</th>
        <th>决策</th>
        <th>评级</th>
        <th>下次联系</th>
        <th>来源</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>



    <?php
    for ($i = 0; $i < count($unit_contactor); $i++) {
        ?>



        <tr id="item<?echo $unit_contactor[$i]['nid']?>"  >



            <td style="color:<?if($unit_contactor[$i]['gender']=="男"){echo "#1e9fff";}else{echo "#ff1e7b";}?>">
                <?echo $unit_contactor[$i]['name']?>
                <span >
        <?if($unit_contactor[$i]['gender']=="男"){?>
            <i class="fa fa-male" aria-hidden="true">  </i>
        <?}else{?>
            <i class="fa fa-female" aria-hidden="true"></i>
        <?}?>
    </span>
            </td>



            <td><?echo $unit_contactor[$i]['phone']?></td>
            <td><?echo $unit_contactor[$i]['email']?></td>
            <td><?echo $unit_contactor[$i]['relation']?></td>
            <td><?echo $unit_contactor[$i]['ranknid']?></td>
            <td><?echo substr($unit_contactor[$i]['checkpoint'],0,10)?>  /
                <span style="background-color: <? if(count_days(date("Y-m-d"),$unit_contactor[$i]['checkpoint']) < 15 ) { echo "red";}?>">
        <?echo count_days(date("Y-m-d"),$unit_contactor[$i]['checkpoint'])?> 日
    </span>
            </td>

            <td><?echo $unit_contactor[$i]['source']?></td>




            <td>





                <a href="../../member/view/detail-edit.php?nid=<? echo $unit_contactor[$i]['nid']?>"
                   class="layui-btn   layui-btn-sm" target="_blank">
                    <i class="fa fa-file-text-o" aria-hidden="true"></i>
                    信息
                </a>


                <!--**
<a href="javascript:void(0)" onclick="delItem (<?php echo $unit_contactor[$i]['nid']?>)"
   class="delete layui-btn  layui-btn-sm" > <i class="layui-icon">&#xe640;</i> 删除 </a>
    <? if(in_array("admin",$quanxian)){?>

    <?}?>
-->


            </td>
        </tr>
    <?}?>


    </tbody>
</table>